<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <title>延迟消息</title>
</head>
<body>
<div id="output"></div>
<script>
    function displayTime() {
        document.getElementById('output').innerHTML = (new Date().toLocaleTimeString());
    }
    setInterval(displayTime, 1000);
</script>
</body>
</html>